#include <iostream>
class Punct{
	double x,y;
	public:
	Punct(int xx=0,int yy=0);	
	inline double getX() const;
	inline double getY() const;
	void setX(int);
	void setY(int);
	bool operator ==(Punct);
	bool operator !=(Punct);
	friend std::istream& operator >>(std::istream&,Punct&);
	friend std::ostream& operator <<(std::ostream&,Punct);
};

class Segment{
	Punct A,B;
	public:
	double calculLungime();
	Segment(Punct,Punct);
	void setX(double);
	void setY(double);
	Punct getA();
	Punct getB();
	void setA(Punct);
	void setB(Punct);	
};

class Poligon{
	Punct puncte[100];
	public:
	Poligon(int);
	bool isPoligon();
	void showPuncte();
	bool isTriunghi();
	bool isDreptunghi();
	bool isSquare();
	bool isConcav();
	bool isConvex();
	bool isParalelogram();
	bool isRomb();
	double aria();
};

